
package net.minecraft.src;

import java.util.ArrayList;
import java.util.List;

public abstract class Clan
{
	
	public Clan()
	{
		ClanName = "";
		TagLine = "";
		Location = null;				
		Level = 1;
	}
	
	// We need to create a list of already made clans and check against it for 
	// in use.	
	public boolean CreateClan(String name)
	{

	  this.ClanName = name;
	  return true;
	}
	
	public boolean CreateTagLine(String tagline)
	{
		this.TagLine = tagline;
		return true;
	}
	
	public boolean AddMember(EntityPlayer player)
	{
		if(Members.contains(player))
		{
		  return false;
		}
		else 
		{
			Members.add(player);
			return true;
		}	   
	}
	
	public int QualityCheck()
	{
	  if(Level >= 45)
	  {
	    return 4;
	  }
	  else if(Level >= 35)
	  {
	    return 3;
	  }
	  else if(Level >= 25)
	  {
	    return 2;
	  }
	  else if(Level >= 1)
	  {
		  return 1;
	  }
	  else
		  return 0; // should never run into this case.  
	  		  
	}
	
	
	public int Level;	
	public String ClanName;
	public String TagLine;
	public ChunkCoordIntPair Location;
	public List<EntityPlayer> Members;
	public List<String> Ranks;
	
	
}
